package springbootview.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;

/**
 * @Author acy
 * @Date 2019/05/06
 */
@Controller
public class HelloWorldController {
	@GetMapping("hello")
	public String helloWorld(){
		return "helloWorld";
	}

	@ModelAttribute
	public String messages(){
		return "helloWorld";
	}
}
